<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>向上平移</title>
	<style>
		li{
			list-style: none;
			margin-right: 10px;
			width: 200px;
			height: 200px;
			float:left;
			overflow: hidden;
		}
		div{
			width: 200px;
			height: 400px;
			transition: transform 2s;
		}
		img{
			width: 200px;
			height: 200px;
		}
		span{
			display: block;
			width: 200px;
			height: 200px;
			background-color: green;
		}
		li:hover div{
			-webkit-transform:translate(0,-200px);
		}
	</style>
</head>
<body>
	<ul>
		<li>
			<div>
				<img src="images/share6.png" alt="">
				<span>语文</span>
			</div>
		</li>
		<li>
			<div>
				<img src="images/share7.png" alt="">
				<span>数学</span>
			</div>
		</li>
		<li>
			<div>
				<img src="images/share8.png" alt="">
				<span>化学</span>
			</div>
		</li>
		<li>
			<div>
				<img src="images/share9.png" alt="">
				<span>物理</span>
			</div>
		</li>
	</ul>
</body>
</html>